* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #222;
  overflow: hidden;
}
.box {
  position: relative;
  width: 300px;
  height: 300px;
  animation: animate 15s linear infinite;
}
@keyframes animate {
  0%{
    rotate: 0deg;
  }
  100%{
    rotate: 360deg;
  }
}
.container:hover .box{
  animation-play-state: paused;
}
.img{
  position: relative;
  left: -50%;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.img .imgBx{
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
  transform: rotate(calc(360deg/8 * var(--i)));
  transform-origin: 190px;
}
.img .imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: rotate(calc(-360deg/8 * var(--i)));
  animation: animateImgBx 15s linear infinite;
}
.container:hover .img .imgBx img{
  animation-play-state: paused;
}
@keyframes animateImgBx {
  0%{
    rotate: 0deg;
  }
  100%{
    rotate: -360deg;
  }
}